package com.zjsd.sqeybusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zjsd.sqeybusiness.mapper.AccountlocusMapper;
import com.zjsd.sqeybusiness.domain.Accountlocus;
import com.zjsd.sqeybusiness.service.IAccountlocusService;

/**
 * 充值消费记录Service业务层处理
 * 
 * @author Zheng
 * @date 2025-03-11
 */
@Service
public class AccountlocusServiceImpl implements IAccountlocusService 
{
    @Autowired
    private AccountlocusMapper accountlocusMapper;

    /**
     * 查询充值消费记录
     * 
     * @param locusid 充值消费记录ID
     * @return 充值消费记录
     */
    @Override
    public Accountlocus selectAccountlocusById(Long locusid)
    {
        return accountlocusMapper.selectAccountlocusById(locusid);
    }

    /**
     * 查询充值消费记录列表
     * 
     * @param accountlocus 充值消费记录
     * @return 充值消费记录
     */
    @Override
    public List<Accountlocus> selectAccountlocusList(Accountlocus accountlocus)
    {
        return accountlocusMapper.selectAccountlocusList(accountlocus);
    }

    /**
     * 新增充值消费记录
     * 
     * @param accountlocus 充值消费记录
     * @return 结果
     */
    @Override
    public int insertAccountlocus(Accountlocus accountlocus)
    {
        return accountlocusMapper.insertAccountlocus(accountlocus);
    }

    /**
     * 修改充值消费记录
     * 
     * @param accountlocus 充值消费记录
     * @return 结果
     */
    @Override
    public int updateAccountlocus(Accountlocus accountlocus)
    {
        return accountlocusMapper.updateAccountlocus(accountlocus);
    }

    /**
     * 批量删除充值消费记录
     * 
     * @param locusids 需要删除的充值消费记录ID
     * @return 结果
     */
    @Override
    public int deleteAccountlocusByIds(Long[] locusids)
    {
        return accountlocusMapper.deleteAccountlocusByIds(locusids);
    }

    /**
     * 删除充值消费记录信息
     * 
     * @param locusid 充值消费记录ID
     * @return 结果
     */
    @Override
    public int deleteAccountlocusById(Long locusid)
    {
        return accountlocusMapper.deleteAccountlocusById(locusid);
    }
}
